package com.example.design.a.factory.domain.mobile;

import com.example.design.a.factory.domain.Product;
import lombok.Getter;
import lombok.Setter;

/**
 * 手机父类
 */
@Setter
@Getter
public class Mobile extends Product {
    /**
     * 手机名称
     */
    private String name;

    /**
     * 手机颜色
     */
    private String color;

    @Override
    public String toString() {
        return "Mobile{" +
                "name='" + name + '\'' +
                ", color='" + color + '\'' +
                '}';
    }
}
